#include <iostream>
using namespace std;

void reserse(char *s)
{
	int len=strlen(s);
	int i=0;
	int j=len-1;
	char temp;
	while(i<j)
	{
		temp=s[i];
		s[i]=s[j];
		s[j]=temp;
		i++;
		j--;
	}
}

int main()
{
	char s[]="abifhviufhi";
	reserse(s);
	cout<<s<<endl;
}